<?php
/**
 * Created by PhpStorm.
 * User: madong
 * Date: 2018/8/29
 * Time: 下午4:54
 */

namespace app\api\model;
use think\Config;
use think\Db;
use think\Model;

class Adeth extends Model
{

    public function Get_user_key($data){

        return self::where('uname',$data)->value('key');

    }

    public function Get_key_backup_status($data){

        if (self::where('uname',$data)->value('tanchuang') == 1){

            return 1;

        }else{

            return 0;

        }

    }

}